Once again, we have a Channel set up via Channel(4), so it has a four-element buffer.

This time, we have two separate coroutines set up to consume items off of the channel. In a regular channel, each sent item is delivered to exactly one consumer. If you run this, you should find the five sent items are each delivered exactly once, split between the two consumers.

You can learn more about this in:
Tags:
Run Edit